package com.zp.common.gateway.service;


import com.zp.common.core.entity.R;
import com.zp.common.core.exception.CaptchaException;

import java.io.IOException;
import java.util.Map;

/**
 * 验证码处理
 *
 * @author zhang peng
 */
public interface ValidateCodeService {
    /**
     * 生成验证码
     */
    R<Map<String, Object>> createCaptcha () throws IOException, CaptchaException;

    /**
     * 校验验证码
     */
    void checkCaptcha (String key, String value) throws CaptchaException;
}
